package com.demo.javaee;

import org.apache.poi.ss.formula.functions.T;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

/**
 * @author shenguangyang
 */
public class ComparableAndComparator {
    private static class Test implements Comparator<Test>, Comparable<Test> {

        @Override
        public int compare(Test o1, Test o2) {
            return 0;
        }

        @Override
        public int compareTo(Test o) {
            return 0;
        }
    }
    public static void main(String[] args) {
        Collections.sort(new ArrayList<Test>(), (o1, o2) -> {
            return 0;
        });
    }
}
